package com.finley.flowabledemo.plc.data;

import com.github.xingshuangs.iot.common.enums.EDataType;
import com.github.xingshuangs.iot.protocol.s7.serializer.S7Variable;
import lombok.Data;

@Data
public class PlcData {

    @S7Variable(address = "DB1.0.1", type = EDataType.BOOL)
    private boolean motorRunning;

    @S7Variable(address = "DB1.0.2", type = EDataType.BOOL)
    private boolean alarmStatus;

    @S7Variable(address = "DB1.4", type = EDataType.FLOAT32)
    private float temperature;

    @S7Variable(address = "DB1.8", type = EDataType.INT32)
    private int productionCount;

    @S7Variable(address = "DB1.12", type = EDataType.UINT16)
    private int speed;
}